package com.hi.hiparty.entity.param;

import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target(ElementType.FIELD)   
@Retention(RetentionPolicy.RUNTIME)   
@Inherited
public @interface Validate {
	public String name()default "";
	public String type()default "";	
	public String format() default "";
	public boolean required() default false;
	public String range() default ""; //逗号分隔的字符串，例如 1,2,3  表示只能是1 2 3中的某个值
	public int maxLen() default -1;
	public int maxBytes() default -1;
	public String arrayType() default "";
	public boolean isElementClassType() default false;//arrayType=array时，数组元素是否是Class,区别于基本数据类型
}
